<include file="Public/register-header"/>
<script>

  // $('#regName').blur(function(){
  //    var name=$.trim($("#regName").val());
  //    if(name==""){
  //     $('#intelligent-regName').text('用户名不能为空!').css({'color':'red','font-size':'14px'});
  //   }else{
  //     $('#intelligent-regName').text('输入成功!').css({'color':'green','font-size':'14px'});
  //   } 
  // })
  // $('#pass').blur(function(){
  // var pass=$.trim($("#pass").val());
  //   if(pass==""){
  //     $('#pi').text('密码不能为空!').css({'color':'red','font-size':'14px'});
  //   }else{
  //     $('#pi').text('输入成功!').css({'color':'green','font-size':'14px'});
  //   }
  // })
  //   $('#yzm').blur(function(){
  // var code=$.trim($("#yzm").val());
  //   if(code==""){
  //     $('#qi').text('验证码不能为空！').css({'color':'red','font-size':'14px'});
  //   }else{
  //     $('#qi').text('');
  //   }
  // })
  // $('#submit').click(function(){

  //   $.post('{:U('aja')}',{name:$('#name').val(),pass:$('#pass').val(),yzm:$('#yzm').val()},function(obj){
  //     //console.log(obj);
  //     if(obj[3]=='a'){
  //       $('#qi').text('验证码错误!').css({'color':'red','font-size':'14px'});
  //       return false;
  //     }
  //     if(obj[1]=='b'){
  //       $('#ti').text('用户名错误!').css({'color':'red','font-size':'14px'});
  //       return false;
  //     }
  //     if(obj[2]=='c'){
  //       $('#pi').text('密码错误!').css({'color':'red','font-size':'14px'});
  //       return false;
  //     }
  //     window.location = "{:U('Index/index')}";
  //   })
  // })
 // $('#regName').blur(function(){
 //    //alert($(this).val());
 //    if($(this).val() == ""){
 //      $("#usernamede").show();
 //    }else{
 //      $("#usernamede").hide();
 //    }
 //    //alert($(this).val());
 //    $.get("{:U('register/yanzheng')}",{'username':$(this).val()},function(data){
 //      if(data == 1){
 //        $("#usernameba").show();
 //      }else{
 //        $("#usernameba").hide();
 //      }
      
 //    })
 //  });
</script>

<div class="mc">
    <form id="personRegForm" method="POST"  action="{:U('register')}">
        <div class="form" onselectstart="return false;">
            <div class="item" id="select-regName">
                <span class="label"><b class="ftx04">*</b>用户名：</span>

                <div class="fl item-ifo">
                    <div class="o-intelligent-regName">
                        <input type="text" id="regName" name="username"  maxlength="20"  class="text" tabindex="1" autoComplete="off" onpaste="return false;"
                              value=""
                               />
                        <i class="i-name"></i>
                        <ul id="intelligent-regName" class="hide"></ul>
                        <!-- <label id="regName_succeed" class="blank"></label>
                        <label id="regName_error" class="hide"></label> -->
                        
                    </div>
                 <div class="intelligent-error hide" id="morePinDiv">
                        <h5>推荐您使用：</h5>

                        <div class="groom" id="morePinGroom"></div>
                    </div>
                    <input type="hidden" name="rFEmpobgMI" value="mWQBE"/>
                    <input type="hidden" value="-1" id="hnschool" class="hide"/>
                    <input type="hidden" id="schoolid" name="schoolid" class="hide"/>
                    <input type="hidden" id="hnseli" class="hide"/>
                </div>
            </div>

            <div id="capslock"><i></i><s></s>键盘大写锁定已打开，请注意大小写</div>
            <div id="o-password">
                <div class="item">
                    <span class="label"><b class="ftx04">*</b>请设置密码：</span>

                    <div class="fl item-ifo">
                        <input type="password" id="pwd" name="pass"  maxlength="20"  class="text" tabindex="2"
                               style="ime-mode:disabled;"
                               onpaste="return  false" autocomplete="off"/>
                        <i class="i-pass"></i>
                        <label id="pwd_succeed" class="blank"></label>
                        <label id="pwd_error"></label>
                        <span class="clr"></span>
                        <label class="hide" id="pwdstrength"><span class="fl">安全程度：</span><b></b></label>

                    </div>
                </div>

                <script type="text/javascript">
                    $('#pwd')[0].onkeypress = function (event) {
                        var e = event || window.event,
                            $tip =
                        $('#capslock'),
                                kc = e.keyCode || e.which, // 按键的keyCode
                                isShift = e.shiftKey || (kc == 16 ) || false; // shift键是否按住
                        if (((kc >= 65 && kc <= 90) && !isShift) || ((kc >= 97 && kc <= 122) && isShift)) {
                                $tip.show();
                        }
                        else {
                                $tip.hide();
                        }
                    };
                </script>

                <div class="item">
                    <span class="label"><b class="ftx04">*</b>请确认密码：</span>

                    <div class="fl item-ifo">
                        <input type="password" id="pwdRepeat" name="repass" maxlength="20" class="text" tabindex="3"
                               onpaste="return  false" autocomplete="off"/>
                        <i class="i-pass"></i>
                        <label id="pwdRepeat_succeed" class="blank"></label>
                        <label id="pwdRepeat_error"></label>
                    </div>
                </div>
                                    
                    <!--验证码更改,qianxuedi-->
                                            <div class="item" id="authcodeDiv">
                            <span class="label"><b class="ftx04">*</b>验证码：</span>

                            <div class="fl item-ifo">
                                <input type="text" id="authcode" style="ime-mode:disabled" name="yzm"
                                       class="text text-1"
                                       tabindex="6" autocomplete="off" MaxLength="6"/>
                                <label class="img">
                                    <img style="cursor:pointer;width:100px;height:36px;display:block;" alt=""
                                         clstag="regist|keycount|personalreg|06"
                                        src="{:U('yzm')}"
                                         ver_colorofnoisepoint="#888888" id="JD_Verification1"> </label>
                                
                                <label class="ftx23">&nbsp;看不清？<a href="javascript:change()"class="flk13">换一张</a></label>
                                <label id="authcode_succeed" class="blank invisible"></label>
                                <span class="clr"></span>
                                <label id="authcode_error"></label>
                            </div>
                        </div>
                        
                    
                            </div>

            <div class="item item-new">
                <span class="label">&nbsp;</span>

                <div class="fl item-ifo">
                    <input type="checkbox" class="checkbox" checked="checked" id="readme"
                           onclick="agreeonProtocol();">
                    <label for="protocol">我已阅读并同意<a href="#" class="blue" id="protocol">《用户注册协议》</a></label>
                    <span class="clr"></span>
                    <label id="protocol_error" class="error hide">请接受服务条款</label>
                </div>
            </div>
            <div class="item">
                <span class="label">&nbsp;</span>
                <input type="submit" class="btn-img btn-regist" id="registsubmit" value="立即注册" tabindex="8"/>
            </div>
        </div>
        
                <span class="clr"></span>
    </form>
</div>
</div>
<include file="Public/register-footer"/>
